//
//  LFBReadTypeModel.m
//  ONE
//
//  Created by dllo on 16/6/10.
//  Copyright © 2016年 GroupNine. All rights reserved.
//

#import "LFBReadTypeModel.h"

@implementation LFBReadTypeModel

- (instancetype)initWithDic:(NSDictionary *)dic{
    
    self = [super initWithDic:dic];
    if (self) {
        
        NSMutableArray *arr = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *tempDic in _essay) {
            
            LFBReadShortModel *model = [[LFBReadShortModel alloc] initWithDic:tempDic];
            [arr addObject:model];
        }
        self.essay = [NSArray arrayWithArray:arr];

        NSMutableArray *arra = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *tempDic in _serial) {
            
            LFBReadSerialModel *model = [[LFBReadSerialModel alloc] initWithDic:tempDic];
            [arra addObject:model];
        }
        self.serial = [NSArray arrayWithArray:arra];

        NSMutableArray *array = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *tempDic in _question) {
            
            LFBReadQuestionModel *model = [[LFBReadQuestionModel alloc] initWithDic:tempDic];
            [array addObject:model];
        }
        self.question = [NSArray arrayWithArray:array];
    }
    return self;
}

@end